-- GENERATED SPELL FOR [Bloodfeather Sorceress] --


function spell0_2018(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2018', 3000, 1)
end

function spell1_2018(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_2018', 0, 1)
end

function Sorts_2018(pUnit, Event)
local choix_sorts_2018 = math.random(0, 1)
if choix_sorts_2018 == 0 then
pUnit:RegisterEvent('spell0_2018', 1, 1)
end
if choix_sorts_2018 == 1 then
pUnit:RegisterEvent('spell1_2018', 1, 1)
end
end

function mob2018_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2018', math.random(1500, 3000), 1)
end

function mob2018_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2018_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2018_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2018, 1, 'mob2018_Action')
RegisterUnitEvent(2018, 2, 'mob2018_Leave')
RegisterUnitEvent(2018, 3, 'mob2018_Kill')
RegisterUnitEvent(2018, 4, 'mob2018_Die')
